# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=synadm
pkgver=0.45
pkgrel=0
pkgdesc="Command line admin tool for Synapse"
url="https://github.com/JOJ0/synadm"
arch="noarch"
license="GPL-3.0-or-later"
depends="py3-tabulate py3-click py3-requests py3-yaml py3-click-option-group py3-dnspython"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/JOJ0/synadm/archive/refs/tags/v$pkgver.tar.gz"
options="!check" #no check provided
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
07ad1ebc803dd1874f3b8217cecfbf4764f8e3cae13c5835cbca7a37f06a23fd6d6bd0f46b81225d280e3ad8dcd6d4ef76d1ba2e9ccf9ebc8ba949c1811c0ec6  synadm-0.45.tar.gz
"
